package com.gxwy.zizhanghu.service;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gxwy.zizhanghu.dao.ZiZhangHuDao;
import com.gxwy.zizhanghu.form.ZiZhangHu;
import com.gxwy.yonghuziliao.dao.YongHuZiLiaoDao;
import com.gxwy.yonghuziliao.form.YongHuZiLiao;



@Service
public class ZiZhangHuServiceImpl implements ZiZhangHuService {

	@Autowired
	private ZiZhangHuDao dao;
	
	@Autowired
	private YongHuZiLiaoDao dao1;
	@Transactional
	public ZiZhangHu findByZhangHuZhangHao(String zhzh) {
		return dao.findByZhangHuZhangHao(zhzh);
	}

	@Transactional
	public void updateyue(Float yue, String zhzh) {
		dao.updateyue(yue, zhzh);
	}
	@Transactional
	public List<YongHuZiLiao> listContact() {
		// TODO Auto-generated method stub
		return null;
	}
	@Transactional
	public List<ZiZhangHu> listId(String choose) {
		// TODO Auto-generated method stub
		return dao.listContactID(choose);
	}
	@Transactional
	public List<YongHuZiLiao> list(String account) {
		// TODO Auto-generated method stub
		return dao1.list(account);
	}

	@Transactional
	public void Delete(Integer id) {
		 dao.Delete(id);
	}


	@Transactional
	public String add(ZiZhangHu zizhanghu) {
		return dao.add(zizhanghu);
	}
	@Transactional
	public List<ZiZhangHu> findAll(){
		return dao.findAll();
		
	}
	@Transactional
	public void update(ZiZhangHu zizhanghu, Integer id) {
		// TODO Auto-generated method stub
		dao.update(zizhanghu, id);
	}
	@Transactional
	public List<YongHuZiLiao> select(String zhanghuzhanghao) {

		return dao.select(zhanghuzhanghao);
	}
}
